package com.cloud.magic_api.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.cloud.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 数据库配置信息
 *
 * @author yzj
 * @since 2022-08-25
 */
@Data
@Schema(name = "SysDatabase对象", description = "Magic-Api")
@TableName("sys_db_configure")
public class SysDatabase extends BaseEntity {

    @Schema(description = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "数据源名称")
    private String dataName;

    @Schema(description = "数据源连接(JDBC)")
    private String jdbcUrl;

    @Schema(description = "数据源登录用户名")
    private String userName;

    @Schema(description = "数据源登录密码")
    private String password;

    @Schema(description = "数据库类型")
    private String dataType;

    @Schema(description = "连接池类型")
    private String poolType;

    @Schema(description = "数据源配置选项(JSON格式）")
    private String options;

    @Schema(description = "说明备注")
    private String comment;

    @Schema(description = "删除标识 0正常 1删除 默认0")
    @TableField(value = "deleted", fill = FieldFill.INSERT)
    private Integer deleted;

}
